/**
 * Created with Intellij IDEA.
 * Description:
 * User:Lenovo
 * Date:2024-12-09
 * Time:14:31
 */
public class Text {
    public static void main(String[] args) {
        MyArrayList<Integer> myArrayList = new MyArrayList<>(Integer.class,10);
        myArrayList.add(10,0);
        myArrayList.add(11,1);
        myArrayList.add(12,2);
        myArrayList.add(13,3);
        myArrayList.add(14,4);
//        System.out.println(myArrayList.toString());
//        System.out.println(myArrayList.getUsedsize());
        myArrayList.add(20,3);
        myArrayList.add(30,0);
        myArrayList.add(40,7);
        System.out.println(myArrayList.toString());
        Integer i = 30;
        myArrayList.remove(i);
        myArrayList.set(-1,2);
        System.out.println(myArrayList.toString());
        System.out.println(myArrayList.get(2));
    }
}
